var express = require('express');
var router = express.Router();



/* GET home page. */
router.get('/', function(req, res, next) {
  // res.render('index', { title: 'Express' });
  const session = req.session;
  if (!session.num) {
    session.num = 0;
  }
  res.send("num="+ ++session.num);
});

module.exports = router;
